package routers

import (
	"huxiaopang/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{}, "head:Header")

	beego.AddNamespace(beego.NewNamespace("/tablecode",
		beego.NSInclude(
			&controllers.TableCodeController{},
		)),
	)

	beego.AddNamespace(beego.NewNamespace("/store",
		beego.NSInclude(
			&controllers.StoreController{},
		)),
	)

	beego.AddNamespace(beego.NewNamespace("/pay",
		beego.NSInclude(
			&controllers.PayController{},
		)),
	)

	beego.AddNamespace(beego.NewNamespace("/notify",
		beego.NSInclude(
			&controllers.NotifyController{},
		)),
	)

	beego.AddNamespace(beego.NewNamespace("/bind",
		beego.NSInclude(
			&controllers.BindController{},
		)),
	)

	beego.AddNamespace(beego.NewNamespace("/upload",
		beego.NSInclude(
			&controllers.UploadLogController{},
		)),
	)
	
	beego.AddNamespace(beego.NewNamespace("/barcode",
		beego.NSInclude(
			&controllers.BarCodeController{},
		)),
	)

}
